<%@ page language="java" import="java.util.*" import="com.quarter.action.CompanyListAction" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<% CompanyListAction cla=new  CompanyListAction(); 
ArrayList<String> list1=cla.getList();
ArrayList<String> list2=cla.getListInfo();
%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>实习实训管理系统</title>
<script type="text/javascript">
  function show(){
   var N; 
   var s;
	 N=document.getElementById("teacher").value; 
	 if(N==0){
	 	document.getElementById("t1").value='<%=list2.get(0)%>';
	 }else if(N==1){
	 	document.getElementById("t1").value='<%=list2.get(1)%>';
	 }               
  }
		
		</script>
		
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="zhong">
  <div class="banner"><img src="images/img_2.gif" /></div>
  <div class="menu">
    <div class="menusel" style="width:95px;">
      <h2><a href="login.jsp">首页</a></h2>
    </div>
    
    <div id="menu1" class="menusel">
      <h2><a href="studentInfo.jsp">个人中心</a></h2>
      <div class="position">
        </div>
      </div>
      <div id="menu2" class="menusel">
      
      <h2><a href="list.action">文件下载
     
      </a></h2>
      <div class="position">
        </div>
      </div>
      <div id="menu3" class="menusel">
       <h2><a href="upload.jsp">文件上传</a></h2>
      <div class="position">
        </div>
      </div>
       <div id="menu4" class="menusel">
      <h2><a href="examineTInfo.jsp">企业信息查看</a></h2>
      <div class="position">
        </div>
      </div>
      <div id="menu4" class="menusel">
      <h2><a href="student.jsp">返回</a></h2>
      <div class="position">
        
        </ul>--> 
      </div>
    </div>
  </div>
  
  <div class="meun_2">欢迎你，<%= session.getAttribute("uid") %>。 </div>

  <div class="main">
    <div class="right" id="div1">    
    
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    
      
     <form name="form1" action="">
     <select name="teacher" id="teacher">
<%

   int rows = list1.size();  // 多少行
  
   
   for(int i = 0; i < rows; i++ ){
 %>
  
 <option value=<%=i%>><%=list1.get(i).toString() %></option>
 
<%
    }
   


 %> 
 </select>
 <input id="b1" name="b1" type="button" value="企业信息" onclick="show()"><br/>
 <textarea id="t1" name="t1" style.width = "1000px"></textarea>
 </form>
    </div>
    <div class="right2" id="div2">
	
      
    </div>
    <div class="clear"></div>
</div>
<script src="js/meun.js" type="text/javascript"></script>
<div style="display:none"><script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript' charset='gb2312'></script></div></body>
</html>

